<?php
/**
 * Stylet Classifield - PHP Template Engine
 *
 * @category     Stylet
 * @package      DOM
 * @author       Jano Chen <janochen@gmail.com>
 * @copyright    Copyright (c) 2008-2009 Jano Chen (http://jano.tw)
 * @link         http://code.google.com/p/classifield/
 * @license      http://code.google.com/p/classifield/source/browse/LICENSE.txt  New BSD License
 * @link         $HeadURL$
 * @version      $Revision$
 * @modifiedby   $LastChangedBy$
 * @lastmodified $Date$
 */
class RecursiveDomNodeIterator extends DomNodeIterator implements RecursiveIterator {
  /* implements RecursiveIterator */
  function getChildren () {
    return new self($this->current()->firstChild);
  }
  function hasChildren () {
    return $this->currentNode->hasChildNodes();
  }
}